if [ "$#" -ne 1 ]; then
    echo "Illegal number of parameters"
    echo `java -cp p02.media-extraction-1.0-SNAPSHOT-jar-with-dependencies.jar extract.document.DOCBatchRun` 
    exit;
fi

cp ../../../../../target/p02.media-extraction-1.0-SNAPSHOT-jar-with-dependencies.jar ./

CUR_TIME=`date +%Y-%m-%d.%H:%M:%S`
LOG_FILE="log/document_batch.log.$CUR_TIME"
echo $LOG_FILE

mkdir -p 'log' 

nohup java -cp p02.media-extraction-1.0-SNAPSHOT-jar-with-dependencies.jar extract.document.DOCBatchRun $1 > $LOG_FILE &
 
